#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# TwiTalker - Tweet it easy with your GTalk
# Copyright 2009-2010 Kavin Gray
# See LICENSE for details.
# 
#

from google.appengine.ext import db

class TwiDbA(db.Model):
    email = db.StringProperty()
    name = db.StringProperty()
    actoken = db.StringProperty()
    actokense = db.StringProperty()
    msgid = db.IntegerProperty()
    dmid = db.IntegerProperty(default=0)
    settime=db.IntegerProperty(default=2)
    runtime=db.IntegerProperty(default=1)
    rt= db.BooleanProperty(default=True)  # for id mode
    # new design
    mode = db.StringProperty(default="off")
    list = db.StringProperty(default="null")
    listcursor = db.StringListProperty(default=['-1','-1'])
    listedcursor = db.StringListProperty(default=['-1','-1'])
    mlistcursor = db.StringListProperty(default=['-1','-1']) 
    mutilusers = db.TextProperty(default="{}") 
    # furture design
    lan = db.StringProperty(default="en")
    search = db.StringProperty()
    counter = db.IntegerProperty(default=2)
    bm = db.StringListProperty()


class TwiDbB(db.Model):
    email = db.StringProperty()
    name = db.StringProperty()
    actoken = db.StringProperty()
    actokense = db.StringProperty()
    msgid = db.IntegerProperty()
    dmid = db.IntegerProperty(default=0)
    settime=db.IntegerProperty(default=2)
    runtime=db.IntegerProperty(default=1)
    rt= db.BooleanProperty(default=True) 
    # new design
    mode = db.StringProperty(default="off")
    list = db.StringProperty(default="null")
    listcursor = db.StringListProperty(default=['-1','-1'])
    listedcursor = db.StringListProperty(default=['-1','-1'])
    mlistcursor = db.StringListProperty(default=['-1','-1']) 
    mutilusers = db.TextProperty(default="{}") 
    # furture design
    lan = db.StringProperty(default="en")
    search = db.StringProperty()
    counter = db.IntegerProperty(default=2)
    bm = db.StringListProperty()



class TwiDbC(db.Model):
    email = db.StringProperty()
    name = db.StringProperty()
    actoken = db.StringProperty()
    actokense = db.StringProperty()
    msgid = db.IntegerProperty()
    dmid = db.IntegerProperty(default=0)
    settime=db.IntegerProperty(default=2)
    runtime=db.IntegerProperty(default=1)
    rt= db.BooleanProperty(default=True) 
    # new design
    mode = db.StringProperty(default="off")
    list = db.StringProperty(default="null")
    listcursor = db.StringListProperty(default=['-1','-1'])
    listedcursor = db.StringListProperty(default=['-1','-1'])
    mlistcursor = db.StringListProperty(default=['-1','-1'])  
    mutilusers = db.TextProperty(default="{}")
    # furture design
    lan = db.StringProperty(default="en")
    search = db.StringProperty()
    counter = db.IntegerProperty(default=2)
    bm = db.StringListProperty()

class TwiDbD(db.Model):
    email = db.StringProperty()
    name = db.StringProperty()
    actoken = db.StringProperty()
    actokense = db.StringProperty()
    msgid = db.IntegerProperty()
    dmid = db.IntegerProperty(default=0)
    settime=db.IntegerProperty(default=2)
    runtime=db.IntegerProperty(default=1)
    rt= db.BooleanProperty(default=True) 
    # new design
    mode = db.StringProperty(default="off")
    list = db.StringProperty(default="null")
    listcursor = db.StringListProperty(default=['-1','-1'])
    listedcursor = db.StringListProperty(default=['-1','-1'])
    mlistcursor = db.StringListProperty(default=['-1','-1'])  
    mutilusers = db.TextProperty(default="{}")
    # furture design
    lan = db.StringProperty(default="en")
    search = db.StringProperty()
    counter = db.IntegerProperty(default=2)
    bm = db.StringListProperty()


class TwiDbE(db.Model):
    email = db.StringProperty()
    name = db.StringProperty()
    actoken = db.StringProperty()
    actokense = db.StringProperty()
    msgid = db.IntegerProperty()
    dmid = db.IntegerProperty(default=0)
    settime=db.IntegerProperty(default=2)
    runtime=db.IntegerProperty(default=1)
    rt= db.BooleanProperty(default=True) 
    # new design
    mode = db.StringProperty(default="off")
    list = db.StringProperty(default="null")
    listcursor = db.StringListProperty(default=['-1','-1'])
    listedcursor = db.StringListProperty(default=['-1','-1'])
    mlistcursor = db.StringListProperty(default=['-1','-1'])
    mutilusers = db.TextProperty(default="{}")    
    # furture design
    lan = db.StringProperty(default="en")
    search = db.StringProperty()
    counter = db.IntegerProperty(default=2)
    bm = db.StringListProperty()


class TwiDbF(db.Model):
    email = db.StringProperty()
    name = db.StringProperty()
    actoken = db.StringProperty()
    actokense = db.StringProperty()
    msgid = db.IntegerProperty()
    dmid = db.IntegerProperty(default=0)
    settime=db.IntegerProperty(default=2)
    runtime=db.IntegerProperty(default=1)
    rt= db.BooleanProperty(default=True) 
    # new design
    mode = db.StringProperty(default="off")
    list = db.StringProperty(default="null")
    listcursor = db.StringListProperty(default=['-1','-1'])
    listedcursor = db.StringListProperty(default=['-1','-1'])
    mlistcursor = db.StringListProperty(default=['-1','-1'])
    mutilusers = db.TextProperty(default="{}")    
    # furture design
    lan = db.StringProperty(default="en")
    search = db.StringProperty()
    counter = db.IntegerProperty(default=2)
    bm = db.StringListProperty()


class TwiDbG(db.Model):
    email = db.StringProperty()
    name = db.StringProperty()
    actoken = db.StringProperty()
    actokense = db.StringProperty()
    msgid = db.IntegerProperty()
    dmid = db.IntegerProperty(default=0)
    settime=db.IntegerProperty(default=2)
    runtime=db.IntegerProperty(default=1)
    rt= db.BooleanProperty(default=True) 
    # new design
    mode = db.StringProperty(default="off")
    list = db.StringProperty(default="null")
    listcursor = db.StringListProperty(default=['-1','-1'])
    listedcursor = db.StringListProperty(default=['-1','-1'])
    mlistcursor = db.StringListProperty(default=['-1','-1']) 
    mutilusers = db.TextProperty(default="{}")  
    # furture design
    lan = db.StringProperty(default="en")
    search = db.StringProperty()
    counter = db.IntegerProperty(default=2)
    bm = db.StringListProperty()


class TwiDbH(db.Model):
    email = db.StringProperty()
    name = db.StringProperty()
    actoken = db.StringProperty()
    actokense = db.StringProperty()
    msgid = db.IntegerProperty()
    dmid = db.IntegerProperty(default=0)
    settime=db.IntegerProperty(default=2)
    runtime=db.IntegerProperty(default=1)
    rt= db.BooleanProperty(default=True) 
    # new design
    mode = db.StringProperty(default="off")
    list = db.StringProperty(default="null")
    listcursor = db.StringListProperty(default=['-1','-1'])
    listedcursor = db.StringListProperty(default=['-1','-1'])
    mlistcursor = db.StringListProperty(default=['-1','-1']) 
    mutilusers = db.TextProperty(default="{}") 
    # furture design
    lan = db.StringProperty(default="en")
    search = db.StringProperty()
    counter = db.IntegerProperty(default=2)
    bm = db.StringListProperty()

class TwiDbI(db.Model):
    email = db.StringProperty()
    name = db.StringProperty()
    actoken = db.StringProperty()
    actokense = db.StringProperty()
    msgid = db.IntegerProperty()
    dmid = db.IntegerProperty(default=0)
    settime=db.IntegerProperty(default=2)
    runtime=db.IntegerProperty(default=1)
    rt= db.BooleanProperty(default=True) 
    # new design
    mode = db.StringProperty(default="off")
    list = db.StringProperty(default="null")
    listcursor = db.StringListProperty(default=['-1','-1'])
    listedcursor = db.StringListProperty(default=['-1','-1'])
    mlistcursor = db.StringListProperty(default=['-1','-1'])  
    mutilusers = db.TextProperty(default="{}")
    # furture design
    lan = db.StringProperty(default="en")
    search = db.StringProperty()
    counter = db.IntegerProperty(default=2)
    bm = db.StringListProperty()


class TwiDbJ(db.Model):
    email = db.StringProperty()
    name = db.StringProperty()
    actoken = db.StringProperty()
    actokense = db.StringProperty()
    msgid = db.IntegerProperty()
    dmid = db.IntegerProperty(default=0)
    settime=db.IntegerProperty(default=2)
    runtime=db.IntegerProperty(default=1)
    rt= db.BooleanProperty(default=True) 
    # new design
    mode = db.StringProperty(default="off")
    list = db.StringProperty(default="null")
    listcursor = db.StringListProperty(default=['-1','-1'])
    listedcursor = db.StringListProperty(default=['-1','-1'])
    mlistcursor = db.StringListProperty(default=['-1','-1']) 
    mutilusers = db.TextProperty(default="{}")
    # furture design
    lan = db.StringProperty(default="en")
    search = db.StringProperty()
    counter = db.IntegerProperty(default=2)
    bm = db.StringListProperty()


class TwiCount(db.Model):
    count = db.IntegerProperty()


class TwiError(db.Model):
    msg = db.StringProperty()   
